<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>layui的使用方法</title>
	<link rel="stylesheet" href="./layui/css/layui.css">
	<script type="text/javascript" src="./layui/layui.js"></script>
</head>
<body>
	<p>点我啊</p>
	<script type="text/javascript">

		layui.use(['layer','jquery'], function(){
		  var layer = layui.layer;
		  var $ = layui.jquery;  //引入JQ

		  $('p').click(function(event) {
		  	//墨绿深蓝风
			layer.alert('墨绿风格，点击确认看深蓝', {
			  skin: 'layui-layer-molv' //样式类名
			  ,closeBtn: 0
			}, function(){
			  layer.alert('偶吧深蓝style', {
			    skin: 'layui-layer-lan'
			    ,closeBtn: 0
			    ,anim: 4 //动画类型
			  });
			});
		  });
		  
		});              


	</script>
</body>
</html>